home *** CD-ROM | disk | FTP | other *** search
- Path: erich.triumf.ca!bennett
- From: bennett@erich.triumf.ca (P.Bennett)
- Newsgroups: comp.lang.c
- Subject: Re: Initialising structure members - help please!
- Date: 19 Feb 1996 22:13 PST
- Organization: TRIUMF: Tri-University Meson Facility
- Distribution: world
- Message-ID: <19FEB199622133419@erich.triumf.ca>
- References: <4gb8hn$3m8@news.mistral.co.uk>
- NNTP-Posting-Host: ftp.triumf.ca
- News-Software: VAX/VMS VNEWS 1.50
-
- In article <4gb8hn$3m8@news.mistral.co.uk>, mikebarnard@mistral.co.uk (Mike Barnard) writes...
- >Hi all.
- >
- >I'm a learner. I am trying to create a function to display a list of
- >menu items using a doubly linked list. My problem is in initialising
- >the members of the individual menu items.
- >
- <snippage>
- >
- >Now, the fun (not) bit. I tried to initialise the items with...
- >
- >one.number = 1;
- >one.description = "1. Calculate a minefield";
-
- You can't copy C strings with an "=". You must use the strcpy() function.
-
- Peter Bennett VE7CEI | Vessels shall be deemed to be in sight
- Internet: bennett@triumf.ca | of one another only when one can be
- Packet: ve7cei@ve7kit.#vanc.bc.ca | observed visually from the other
- TRIUMF, Vancouver, B.C., Canada | ColRegs 3(k)
- GPS and NMEA info and programs: ftp://sundae.triumf.ca/pub/peter/index.html
-
-
-
-
-
-
-